<?php namespace App\Models;

class ProductFile extends \Eloquent
{
	protected $table = "product_files";
	protected $softDelete = true;
	
	public function filetype()
	{
		return $this->belongsTo("App\Models\ProductFileType", "typeid", "id")->first()->type;
	}
	public function filetypeid()
	{
		return $this->belongsTo("App\Models\ProductFileType", "typeid", "id")->first()->id;
	}
}